import Vue from "vue";
import Vuex from "vuex";
// 有首页模块、用户模块
import goods from "./goods";
import seller from "./seller";
import ratings from "./ratings";

Vue.use(Vuex);

// 公共的状态
const state = {};
const getters = {};
const mutations = {};
const actions = {};

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions,
  modules: {
    goods,
    seller,
    ratings
  },
});